import java.util.Scanner;

public class demo02 {
    //求路径总数
    public static int count=0;
    public static int[] dx={0,1};
    public static int[] dy={1,0};
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt()+1;
        int m=sc.nextInt()+1;
        int[][] arr=new int[n][m];
        arr[0][0]=1;
        dfs(arr,0,0);
        System.out.println(count);
    }
    public static void dfs(int[][] arr,int i,int j){
        if(i==arr.length-1&&j==arr[i].length-1){
            count++;
            return;
        }
        for (int k = 0; k < 2; k++) {
            int i1=i+dx[k];
            int j1=j+dy[k];
            if (i1>=0&&i1<arr.length&&j1>=0&&j1<arr[i].length&&arr[i1][j1]==0){
                arr[i1][j1]=1;
                dfs(arr,i1,j1);
                arr[i1][j1]=0;
            }
        }
    }
}
